package cn.tedu.service;

import cn.tedu.pojo.Car;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;

@Component
public class CarServiceImpl implements CarService{
    @Override
    public Car get() {
        /*ClassPathXmlApplicationContext spring = new ClassPathXmlApplicationContext("spring-config.xml");
        Car c = (Car) spring.getBean("car");*/
        Car c = new Car();
        c.setName("保时捷").setColor("红色").setPrice(641000.0);
        return c;
    }


}
